There are eight data types used to construct variables in PHP −
Integers − these are whole numbers without a decimal point, like 4195.
Doubles − are floating-point numbers, like 3.14159 or 49.1.
Booleans – come with only possible values of either true or false.
NULL − is a special type with only one value: NULL.
Strings − are sequences of characters.
Arrays − are named and indexed set of other values.
Objects − are f programmer-defined classes, which can include
both other kinds of values and functions that are specific to the class.
Resources − are special variables that refer to resources external to PHP (such as database connections).
Posted Date:- 2021-08-17 11:31:28
What is Spaceship Operator in PHP7
What is garbage collection in PHP?
How can we increase the execution time of a PHP script?
What are the steps to create a new database using MySQL and PHP?
What is meant by urlencode and urldocode?
Differentiate between compile-time exception and runtime exception in PHP.
What is the use of session_start() and session_destroy() functions?
Is typecasting supported in PHP?
What is PHP sessions default timeout.
What is difference between strstr and stristr.
How can we resolve maximum allocation time exceeds error
What is difference between single quotes and double quotes in php
What is the IonCube PHP loader?
How to get the number of elements in an array
What is differnce between HTML and XHTML
What are some of the top Content Management Systems (CMS) used in PHP?
What is the use of constructors and destructors in PHP?
What are some of the popular frameworks in PHP?
What is the meaning of break and continue statements in PHP?
How are constants defined in PHP?
Explain the difference between exec() vs system() vs passthru()?
What exactly is an HTTP request?
Explain function call by reference
How to export data into an Excel file?
Explain the PHP error 'Parse error in PHP - unexpected T_variable at line x'.
Name the different types of variables in PHP
When should I use require vs. include?
What is the differences between $a != $b and $a !== $b?
How can you embed PHP code in an HTML page?
What are the popular frameworks in PHP?
How to download files from an external server with code in PHP?
How can we upload a file in PHP?
What is the difference between require() and require_once()?
What is the use of the .htaccess file in php?
How to get IP Address of clients machine?
What is the difference between MyISAM and InnoDB?
What is the difference between public, protected and private?
What are the main differences between const vs define
What are some of the common applications of PHP?
Differentiate between echo and print()